Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically set properties on runtime using setProperties #1333

Closed
wants to merge 14 commits into from

Conversation

martinale14
Copy link

No description provided.

@dhaq
Copy link

dhaq commented Jun 29, 2023

How to use this feature to highlight a feature on tap, I want to highlight by ID, but how to write expression. @martinale14

@martinale14
Copy link
Author

@dhaq if you want to highlight use the default tap on symbol an change the properties using the new method on a layer

@martinale14 martinale14 had a problem deploying to ANDROID_CI_DOWNLOADS_TOKEN August 8, 2023 12:21 — with GitHub Actions Failure
@martinale14 martinale14 had a problem deploying to ANDROID_CI_DOWNLOADS_TOKEN August 8, 2023 12:21 — with GitHub Actions Failure
@ThalesVonMilet
Copy link

Hi is this still in work cause I would need this. Because I need to change the literals of the text-Font of my Symbol Layer

@@ -138,6 +139,10 @@ final class MapboxMapController
private LatLng dragOrigin;
private LatLng dragPrevious;
private LatLngBounds bounds = null;
private HashMap<String, LineLayer> lineLayers = new HashMap<String, LineLayer>();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a need to do this? Can’t you just the get the layer from the style?

@@ -28,6 +28,10 @@ class MapboxMapController: NSObject, FlutterPlatformView, MGLMapViewDelegate, Ma
private var interactiveFeatureLayerIds = Set<String>()
private var addedShapesByLayer = [String: MGLShape]()

private var lineLayers = [String : MGLLineStyleLayer]()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as with android

)
)

let newBounds: MGLCoordinateBounds = MGLCoordinateBounds.fromArray(bounds)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whats the intent of this change? why only on ios?

Copy link

stale bot commented Dec 20, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 20, 2023
@stale stale bot closed this Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants